<div id="arianne">
	<?php echo link_to('Accueil','@homepage')?> > Déposer une annonce
</div>

<div class="span-18" id="newAds">
	<h1>Déposer votre annonce gratuitement</h1>
	
	<?php echo form_tag('@adsCreate', array('id' => 'newAdsform', 'class' => 'span-17 shadow' , 'multipart' => true)); ?>
	<?php echo $form?>
	<input type="submit" value="Ajouter votre annonce" class="btn_green">
	</form>
</div>

<div class="span-6 last" id="col_right">
	<?php include_partial('static/connectColRight')?>
</div>

<?php echo javascript_tag() ?>
// selection les sous-categories
    function selectSubCategories(category){
        var s_url = "<?php echo url_for('@sub-categories?slug=subcategories&cat_id=') ?>" + category;
        $.ajax({
                    type: "POST",
                    url: s_url,
                    success: function(response){
                       if(response){
                            $('#newAds_subcategory_id').html(response);
                        }
                    }
        });
    }
<?php echo end_javascript_tag() ?>